<div class="item">
    <div class="title"><a class="new-a" href="/post/topPosts"><?= $this->__("Top posts"); ?></a><span class="hide">hide</span></div>
    <div class="content">
        <?php foreach ($this->posts as $post): ?>
            <p class="top-post-item"><a href="/post/<?= $post->id; ?>"><?= $post->title; ?></a></p>
        <?php endforeach; ?>
    </div>
</div>